/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package mindwave.theoracle;

import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author MarcoJ
 */

public class Oracle implements Runnable{
    
    
    private int idResult;
    
    public Oracle(){
        this.idResult = 0;
    }

    public void run(){
        //faccio aspettare il thread 15 seconde per simulare la ricerca
        try {
            Thread.sleep(5000);
        } catch (InterruptedException ex) {
            Logger.getLogger(Oracle.class.getName()).log(Level.SEVERE, null, ex);
        }
        //setto di default l'immagine 2
        this.idResult = 2;
    }
    
    public int get_idResult(){
        
        return this.idResult;
    }
    
} 
